package com.dynamictpm.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 描述：：
 * <p>
 * ------------------------------------
 *
 * @program: dynamic-tpm
 * @ClassName ConfigServletInner
 * @author: it-yml
 * @create: 2023-07-05 14:31
 * @Version 1.0
 * --------------------------------------
 **/
@Service
public class ConfigServletInner {

    @Autowired
    private LongPollingService longPollingService;

    public String doPollingConfig(HttpServletRequest request, HttpServletResponse response){
        longPollingService.addLongPollingClient(request, response);
        return HttpServletResponse.SC_OK + "";
    }
}
